#define _CRT_SECURE_NO_WARNINGS  1
#include"Heap.h"


void test()
{
	int arr[] = { 2,5,3,12,23,5,7,7,9,1,8,4,6,423423,53,1,3,989,4 };

	TOPK(arr, sizeof(arr) / sizeof(int), 3);

	HP p;
	HPInit(&p);
	for (int i = 0; i < sizeof(arr) / sizeof(int); i++)
	{
		HPPush(&p, arr[i]);
	}

	HpSort(arr, sizeof(arr) / sizeof(int));
	for (int i = 0; i < sizeof(arr) / sizeof(int); i++)
	{
		printf("%d ", arr[i]);
	}
	printf("\n");

	HPPop(&p);
	

	HPDestroy(&p);
}

int main()
{
	test();

	return 0;
}